//
//  ACSafeObject.h
//  ACFramework
//
//  Created by caoyq on 2019/4/14.
//

#import <Foundation/Foundation.h>

/**
 * 对Foundationl库中常见类进行容错处理(一套安全机制)。
 * 具体类如下：
 - NSObject
 - NSString、NSMutableString
 - NSAttributedString、NSMutableAttributedString
 - NSArray、NSMutableArray
 - NSDictionary、NSMutableDictionary
 - NSSet、NSMutableSet
 - NSOrderedSet、NSMutableOrderedSet
 - NSUserDefaults
 - NSCache
 */

FOUNDATION_EXPORT NSString *const ACSafeNotification;

@interface NSObject(ACSwizzle)

+ (void)swizzleClassMethod:(SEL)originalSelector withMethod:(SEL)newSelector;
- (void)swizzleInstanceMethod:(SEL)originalSelector withMethod:(SEL)newSelector;

@end


